package com.hans.cloud.api.service;

import com.hans.cloud.api.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户服务接口类
 */
public interface UserServiceAPI {
    /**
     * 根据用户id获取用户
     * @param id
     * @return
     */
    @GetMapping("/get")
    R get(@RequestParam(value = "id", required = false, defaultValue = "1") Long id);
}
